#ifndef GAME_NEGOTIATION_DIALOG_H
#define GAME_NEGOTIATION_DIALOG_H

#include <QDialog>
#include "ui_gamenegotiationdialog.h"
#include "../common/gamenegotiationdata.h"

class GameNegotiationDialog : public QDialog
{
    Q_OBJECT
public:
	GameNegotiationDialog(QWidget * parent = 0,bool suggestgame=false,GameConfiguration* gc = NULL);
	
	Ui::gamenegotiationdialog ui;
public slots:
	void receiveSuggestion(QString suggestion);
	void sendSuggestion(); //send the suggestion that is filled in
	void declineOffer();
	void acceptOffer();
signals:
	void SIG_sendSuggestion(QString);
	void SIG_finished(); // when we are finaly finished!
	
private:
	void setViewMode(bool suggestgame);
	GameConfiguration* m_pCurrentSuggestion;
	void setWaitState();
	void setSuggestState();
};

#endif
